﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once

#include "GcmpModelInterface.h"

namespace gcmp
{
    class IElement;

    /// \brief Element拷贝对象后处理器
    /// 
    /// 当一个Element在文档中被拷贝后，此对象能对其进行进一步的后处理
    /// 更多信息请参考IDocument的Clone函数参数说明
    class IClonedElementPostProcessor
    {
    public:
        /// \brief 析构函数
        virtual ~IClonedElementPostProcessor(){}

    public:
        /// \brief 处理传入的Element拷贝对象
        /// \pElement Element拷贝对象
        /// \return 处理成功返回true，处理失败返回false
        virtual bool Do(IElement* pElement) = 0;
    };
}


